package com.lin.java.tool.file.service;

import com.lin.java.tool.file.service.vo.ChunkVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author: linjiang
 * @date: 2025/1/21
 */
public interface FileService {
    /**
     * 文件上传
     *
     * @param file
     */
    String uploadFile(MultipartFile file) throws Exception;

    /**
     * 文件下载
     *
     * @param someObj
     * @param response
     */
    void downloadFile(String someObj, HttpServletResponse response) throws IOException;

    void uploadChunk(ChunkVO chunk) throws IOException;

    void mergeChunk(ChunkVO chunk);
}
